import ApiInstance from "@/utils/request";

// banner 列表
export const getBannerList = (params) =>
  ApiInstance.get(`/goodsBanner/list`, {
    params,
  });
// 菜单列表
export const getMenuList = (params) =>
  ApiInstance.get(`/homeMenu/getList`, {
    params,
  });

// 登录
export const login = (params) =>
  ApiInstance.post("/api/Login/GetJwtToken", params);
// 获取当前登录用户信息
export const GetUserSelfInfo = (params) =>
  ApiInstance.post("/api/SZHB/GetUserSelfInfo", params);
// 获取用户参与的项目
export const GetProjectList = (params) =>
  ApiInstance.post("/api/SZHB/GetProjectList", params);

//工作台-----------------------------------------------------------------------------------------
// 获取危大工程列表
export const GetGreatDangerProjectList = (params) =>
  ApiInstance.post("/api/SZHB/GetGreatDangerProjectList", params);
//获取危大工程下的所有流程
export const GetGreatDangerProjectFlowLink = (params) =>
  ApiInstance.post("/api/SZHB/GetGreatDangerProjectFlowLink", params);
//处理危大工程流程
export const HandleGreatDangerProject = (params) =>
  ApiInstance.post("/api/SZHB/HandleGreatDangerProject", params);

// 环境监测--
// 获取扬尘监测数据
export const GetRaisedustList = (params) =>
  ApiInstance.post("/api/Environment/GetRaisedustList", params);

// 智能监控--
// 获取安全隐患识别数据
export const GetSafeRecoList = (params) =>
  ApiInstance.post("/api/Monitor/GetSafeRecoList", params);
// 获取隐患管理流程
export const GetSafeRecoFlow = (params) =>
  ApiInstance.post("/api/Monitor/GetSafeRecoFlow", params);
// 获取当前处理流程
export const GetNowProcess = (params) =>
  ApiInstance.post("/api/Monitor/GetNowProcess", params);
// 处理当前流程
export const DisposeNowProcess = (params) =>
  ApiInstance.post("/api/Monitor/DisposeNowProcess", params);

// 修复工程--
//获取检测视频/有限空间作业
export const GetRepairApproval = (params) =>
  ApiInstance.post("/api/SZHB/GetRepairApproval", params);
//新增/修改检测视频/有限空间作业
export const AddOrUpdateRepairApprov = (params) =>
  ApiInstance.post("/api/SZHB/AddOrUpdateRepairApprov", params);
// 批量删除监测照片
export const DelMonitorPhotos = (params) =>
  ApiInstance.post("/api/SZHB/DelMonitorPhotos", params);
//添加监测照片
export const AddMonitorPhoto = (params) =>
  ApiInstance.post("/api/SZHB/AddMonitorPhoto", params);

// 上传监测报告
export const UploadJKReportFile = (params) =>
  ApiInstance.post("/api/SZHB/UploadJKReportFile", params);
// 删除监测报告
export const DelJKReportFile = (params) =>
  ApiInstance.post("/api/SZHB/DelJKReportFile", params);

//获取预警处理列表
export const GetWarningList = (params) =>
  ApiInstance.post("/api/SZHB/GetWarningList", params);
//删除预警信息
export const DelWarning = (params) =>
  ApiInstance.post("/api/SZHB/DelWarning", params);
//获取预警处理信息
export const GetWarningDiepose = (params) =>
  ApiInstance.post("/api/SZHB/GetWarningDiepose", params);
//获取选中流程文件
export const GetWarningDisposeFiles = (params) =>
  ApiInstance.post("/api/SZHB/GetWarningDisposeFiles", params);
//预警处理
export const WarningDiepose = (params) =>
  ApiInstance.post("/api/SZHB/WarningDiepose", params);

//数据-----------------------------------------------------------------------------------------
// 人员管理----人员管理
export const LabourManage = (params) =>
  ApiInstance.post("/api/Labour/LabourManage", params);
//人员管理----分包管理
export const SubpackageManage = (params) =>
  ApiInstance.post("/api/Labour/SubpackageManage", params);
//人员管理----人员档案
export const LabourInfos = (params) =>
  ApiInstance.post("/api/Labour/LabourInfos", params);

// 进度--
// 根据项目信息获取总工期和已施工天数
export const Getdurationbyp = (params) =>
  ApiInstance.post("/api/SZHB/Getdurationbyp", params);
// 获取项目进度概况
export const GetRatesummarize = (params) =>
  ApiInstance.post("/api/SZHB/GetRatesummarize", params);
// 获取里程碑列表
export const GetMilList = (params) =>
  ApiInstance.post("/api/SZHB/GetMilList", params);

// 环境--
// 获取大屏环境监测数据
export const GetEnvironmentIndex = (params) =>
  ApiInstance.post("/api/Environment/GetEnvironmentIndex", params);

// 监控
// 获取项目监控设备列表
export const PorjectHT_MonitorGetProjectMonitor = (params) =>
  ApiInstance.post("/api/Monitor/GetProjectMonitor", params);

// 基坑
//获取项目基坑列表
export const GetProjectjkList = (params) =>
  ApiInstance.post("/api/SZHB/GetProjectjkList", params);
// 获取监测照片列表
export const GetMonitorPhotosList = (params) =>
  ApiInstance.post("/api/SZHB/GetMonitorPhotosList", params);
// 获取基坑/盾构 监测日报/周报/月报
export const GetJKReportList = (params) =>
  ApiInstance.post("/api/SZHB/GetJKReportList", params);
// 审核资料-----转换office文件
export const OfficeOnline = (params) =>
  ApiInstance.post("/api/Common/OfficeOnline", params);

// 顶管配置-获取项目顶管机
export const GetPushBench = (params) =>
  ApiInstance.post("/api/SZHB/GetPushBench", params);
// 顶管配置-获取顶进工况数据列表
export const GetPBGKDateList = (params) =>
  ApiInstance.post("/api/Pushbench/GetPBGKDateList", params);

// 管道
//管道摸排/清淤检测----获取管道摸排/清淤检测
export const GetRepairInfo = (params) =>
  ApiInstance.post("/api/SZHB/GetRepairInfo", params);
// 获取工艺列表
export const GetRepairWorkmanShip = (params) =>
  ApiInstance.post("/api/SZHB/GetRepairWorkmanShip", params);
// 有限空间作业
export const GetRepairGasValueLinkCount = (params) =>
  ApiInstance.post("/api/SZHB/GetRepairGasValueLinkCount", params);

// 盾构
// 获取项目盾构机列表
export const GetShieldList = (params) =>
  ApiInstance.post("/api/SZHB/GetShieldList", params);
// 获取掘进参数
export const GetDrivingparameters = (params) =>
  ApiInstance.post("/api/SZHB/GetDrivingparameters", params);
// 获取掘进参数
export const GetShieldDatas = (params) =>
  ApiInstance.post("/api/Shield/GetShieldDatas", params);
//异常报警统计
export const GetDJbjlb = (params) =>
  ApiInstance.post("/api/Shield/GetDJbjlb", params);



// 大事记-----------------------------------------------------------------------------------------
// 获取大事记图片列表
export const GetMemfileList = (params) =>
  ApiInstance.post("/api/SZHB/GetMemfileList", params);
// 获取大事记列表
export const GetMemList = (params) =>
  ApiInstance.post("/api/SZHB/GetMemList", params);
// 获取待办事项
export const TodoList = (params) =>
  ApiInstance.post("/api/SZHB/TodoList", params);